




/**
 * 
 * base_url
 */
function base_url() {
	return __BASEPATH;
}
// end: base_url




/**
 * 
 * add_demofield
 */
function add_demofield () {
	demofield_counter++;
	var demo_field = '<span class="form-row">' +
						'<span class="row-field"><input type="checkbox" class="fcheck-demo" name="adddemo-demotime-check-' + demofield_counter + '" id="adddemo-demotime-check-' + demofield_counter + '" /></span>' +
						'<span class="row-field">' +
							'<select name="adddemo-demotime-demo-' + demofield_counter + '" id="adddemo-demotime-demo-' + demofield_counter + '" class="ftext-demo">' +
								'<option value="0" selected="selected">-- Select the Demo --</option>' +
								'<option value="1">FlexPod - Executive Level Demo</option>' +
								'<option value="2">FlexPod - Executive Level Demo</option>' +
								'<option value="3">FlexPod - Executive Level Demo</option>' +
							'</select>' +
						'</span>' +
						'<span class="row-field">' +
							'<select id="adddemo-demotime-time-' + demofield_counter + '" name="adddemo-demotime-time-' + demofield_counter + '" class="fselect-demo">' +
								'<option value="9:00">9:00</option><option value="9:30">9:30</option><option value="10:00">10:00</option><option value="10:30">10:30</option><option value="11:00">11:00</option><option value="11:30">11:30</option><option value="12:00">12:00</option><option value="12:30">12:30</option><option value="15:00">15:00</option><option value="15:30">15:30</option><option value="16:00">16:00</option><option value="16:30">16:30</option><option value="17:00">17:00</option><option value="17:30">17:30</option><option value="18:00">18:00</option><option value="18:30">18:30</option><option value="19:00">19:00</option><option value="19:30">19:30</option><option value="20:00">20:00</option><option value="20:30">20:30</option><option value="21:00">21:00</option><option value="21:30">21:30</option><option value="22:00">22:00</option><option value="22:30">22:30</option><option value="23:00">23:00</option><option value="23:30">23:30</option>' +
							'</select>' +
						'</span>' +
						'<span class="row-field"><a href="javascript: void(0);" class="action delete" title="Delete Field"></a></span>' +
						'<span class="clear"></span>' +
					'</span>';
	$('.form-add-demo .adddemo-dates-times .demos-and-times').append(demo_field);
	
}
// end: add_demofield





/**
 * 
 * windows_demo_type
 */
function window_demo_type () {
	demo_window = '<span class="window-container"><table cellpadding="0" cellspacing="0" border="0" height="100%" width="100%"><tr><td height="100%" widht="100%" valign="middle" align="center">' +
		'<span class="window"><span class="window-wrapper">' +
		'<a href="' + base_url() + 'demos/add_fixed/" class="button-big">Fixed</a>' +
		'<a href="' + base_url() + 'demos/add_movil/" class="button-big">Movile</a>'+
		'</span></span>' +
	'</td></tr></table></span>';
	$('body').prepend(demo_window);
	$('.window-container').hide(0, function () {
		$(this).fadeIn(timer);
	});
}
// end: windows